package com.smart.draw.plantuml.controllers.render;

import net.sourceforge.plantuml.FileFormat;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xiaoqiang
 * @Version LatexController.java, v 0.1 2025年08月26日 16:59 xiaoqiang
 * @Description: TODO
 */
@RestController
@RequestMapping({"/latex"})
public class LatexController extends AbstractRenderController {

    private static final MediaType CONTENT_TYPE = MediaType.parseMediaType("application/x-latex");

    @Override
    protected FileFormat getFileFormat() {
        return FileFormat.LATEX;
    }

    @Override
    protected MediaType getContentType() {
        return CONTENT_TYPE;
    }
}
